package spring.springentity.entity.table;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import spring.springentity.entity.BaseEntity;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("T_COFFEE")
public class CoffeeEntity extends BaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * id
   */
  @TableId(value = "ID", type = IdType.ASSIGN_ID)
  private Long id;

  @TableField("NAME")
  private String name;

  @TableField("PRICE")
  private BigDecimal price;
}
